//
//  THSlideImageView.h
//  PublicProject
//
//  Created by H.DX on 16/3/31.
//  Copyright © 2016年 H.D.X. All rights reserved.
//
//例子
//-(void)ces{
//    
//    NSMutableArray *arr=[[NSMutableArray alloc] initWithCapacity:0];
//    
//    for(int i=0;i<10;i++){
//        NSDictionary *dict=[NSDictionary dictionaryWithObjectsAndKeys:@"快乐益",@"title",@"http://img.zcool.cn/community/01ed0855a0ccda32f875b38dbf70cd.jpg",@"imgurlSmall",@"http://img.zcool.cn/community/01ed0855a0ccda32f875b38dbf70cd.jpg",@"imgurl",@"http://www.happiyi.com",@"url", nil];
//        [arr addObject:dict];
//        
//    }
//    //外面的层
//    UIView *ceView=[[UIView alloc] initWithFrame:CGRectMake(10, 0, self.view.width-20, 120) ];
//    [ceView setBackgroundColor:[UIColor whiteColor]];
//    //分类滑动
//    THSlideImageView *slideMenuView=[[THSlideImageView alloc] insetupTHSlideImageView:CGRectMake(0, 0, ceView.width, 0) DrawArray:arr Spacing:5];
//    slideMenuView.thdelegate=self;
//    slideMenuView.maxLow=2;//显示最大个数
//    [ceView addSubview:slideMenuView];
//    [slideMenuView ShowTHSlideImageView];
//    ceView.height=slideMenuView.bottom;
//    [slideMenuView setTHSlideImageViewSelectIndex:0 TapGestureRecognizer:YES];
//    [self.view addSubview:ceView];
//    
//    
//    
//}


#import <UIKit/UIKit.h>

@class THSlideImageView;

@protocol THSlideImageViewDelegate <NSObject>
@optional
/*
 *选中了那一条
 */
-(void)THSlideImageView:(NSInteger)index DataArray:(NSArray*)array;

@end

@interface THSlideImageView : UIScrollView
/*图片显示比例 默认3:2 eg:self.pictureScale=2.f/3.f*/
@property (nonatomic) CGFloat pictureScale;

/*最大显示张数 默认3张*/
@property (nonatomic) CGFloat maxLow;

/*内容是否居中显示*/
@property (nonatomic) BOOL isCenter;


/*按钮width*/
@property (nonatomic) CGFloat btnWidth;

/*more图*/
@property (nonatomic,strong) UIImage *defaultImage;

/*左侧按钮*/
@property (nonatomic,strong) UIImage *leftImage;

/*右侧按钮*/
@property (nonatomic,strong) UIImage *rightImage;

//线条颜色 默认为选中颜色
@property(nonatomic,strong) UIColor  *lablineColor;

//线条高度 默认2
@property(nonatomic) NSInteger  lablineHeight;
//下划线
@property(nonatomic,strong)UILabel *labLine;


@property (nonatomic, strong) id <THSlideImageViewDelegate> thdelegate;

//大小  数据 是否导航
-(id)insetupTHSlideImageView:(CGRect)frame DrawArray:(NSArray*)array  Spacing:(CGFloat)spacing;

 -(void)ShowTHSlideImageView;

-(void)setTHSlideImageViewSelectIndex:(NSInteger)index TapGestureRecognizer:(BOOL)isTap;

@end
